import {wx} from '../../../weixin2alipay/index.js';
import {Page,Component} from '../../../weixin2alipay/index.js';
Page({
    "onShareAppMessage"(){
      return {
        "title":'扫码',
        "path":'packageAPI/pages/scan-code/scan-code'
};
    },
    "data":{
        "result":''
},
    "scanCode"(){
      const that = this;
      wx.scanCode({
        "success"(res){
          that.setData({
            "result":res.result
});
        },
        "fail"(){
        }
});
    }
});

